package org.hdax.dm.dao.entitydao;

import org.hdax.dm.entity.item_type.DmItemType;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.data.repository.query.Param;

import java.util.List;

public interface DmItemTypeDao extends JpaRepository<DmItemType, Integer>, JpaSpecificationExecutor<DmItemType> {

    List<DmItemType> findByParentOrderByKey(@Param("parent") Integer parent);
}
